#ifndef GLHELPER_DISPLAYLIST
#define GLHELPER_DISPLAYLIST
#include <boost/noncopyable.hpp>
namespace GLHelper{
class DisplayList : private boost::noncopyable
{
public:
	DisplayList();
	~DisplayList();

	void newList();
	void endList();
	void call()const;
	bool empty()const { return m_list == 0; }
	void clear();
private:
	bool m_isNewList;
	unsigned m_list;
};
}//GLHelper

#endif
